.class Les/wb$d;
.super Landroidx/recyclerview/widget/RecyclerView$Adapter;
.source "ShareDialog.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/wb;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "d"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroidx/recyclerview/widget/RecyclerView$Adapter<",
        "Les/wb$e;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Les/wb;


# direct methods
.method private constructor <init>(Les/wb;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/wb$d;->a:Les/wb;

    invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Les/wb;Les/wb$a;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Les/wb$d;-><init>(Les/wb;)V

    return-void
.end method


# virtual methods
.method public a(Les/wb$e;I)V
    .locals 3

    .line 1
    iget-object v0, p0, Les/wb$d;->a:Les/wb;

    invoke-static {v0}, Les/wb;->a(Les/wb;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Les/zb;

    .line 2
    iget-object v0, p0, Les/wb$d;->a:Les/wb;

    invoke-static {v0, p2}, Les/wb;->a(Les/wb;Les/zb;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p1, Les/wb$e;->c:Landroid/widget/TextView;

    iget-object v1, p0, Les/wb$d;->a:Les/wb;

    invoke-static {v1}, Les/wb;->b(Les/wb;)Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    sget v2, Les/u4;->durec_colorPrimary:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 4
    iget-object v0, p0, Les/wb$d;->a:Les/wb;

    invoke-static {v0}, Les/wb;->b(Les/wb;)Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Les/v4;->durec_share_list_icon_size:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v0

    .line 5
    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v1, v0, v0}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    goto :goto_0

    .line 6
    :cond_0
    iget-object v0, p1, Les/wb$e;->c:Landroid/widget/TextView;

    iget-object v1, p0, Les/wb$d;->a:Les/wb;

    invoke-static {v1}, Les/wb;->b(Les/wb;)Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    sget v2, Les/u4;->durec_share_item_app_label_color:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 7
    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v0, -0x1

    invoke-direct {v1, v0, v0}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 8
    :goto_0
    iget-object v0, p1, Les/wb$e;->c:Landroid/widget/TextView;

    iget-object v2, p2, Les/zb;->c:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 9
    iget-object v0, p1, Les/wb$e;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 10
    iget-object v0, p1, Les/wb$e;->b:Landroid/widget/ImageView;

    iget-object v1, p2, Les/zb;->e:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 11
    iget-object p1, p1, Les/wb$e;->a:Landroid/view/View;

    new-instance v0, Les/wb$d$a;

    invoke-direct {v0, p0, p2}, Les/wb$d$a;-><init>(Les/wb$d;Les/zb;)V

    invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method public getItemCount()I
    .locals 1

    .line 1
    iget-object v0, p0, Les/wb$d;->a:Les/wb;

    invoke-static {v0}, Les/wb;->a(Les/wb;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public bridge synthetic onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
    .locals 0

    .line 1
    check-cast p1, Les/wb$e;

    invoke-virtual {p0, p1, p2}, Les/wb$d;->a(Les/wb$e;I)V

    return-void
.end method

.method public bridge synthetic onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .locals 0

    .line 1
    invoke-virtual {p0, p1, p2}, Les/wb$d;->onCreateViewHolder(Landroid/view/ViewGroup;I)Les/wb$e;

    move-result-object p1

    return-object p1
.end method

.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Les/wb$e;
    .locals 4

    .line 2
    new-instance p2, Les/wb$e;

    iget-object v0, p0, Les/wb$d;->a:Les/wb;

    invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    sget v2, Les/y4;->durec_share_item_layout:I

    const/4 v3, 0x0

    invoke-virtual {v1, v2, p1, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    invoke-direct {p2, v0, p1}, Les/wb$e;-><init>(Les/wb;Landroid/view/View;)V

    return-object p2
.end method
